﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using 温湿度和颗粒度监控测试.ViewModel.温湿度;
using 温湿度和颗粒度监控测试.Common;

namespace 温湿度和颗粒度监控测试.View.温湿度
{
    /// <summary>
    /// 温湿度测试Window.xaml 的交互逻辑
    /// </summary>
    public partial class 温湿度测试Window : Window
    {
        public 温湿度测试Window()
        {
            InitializeComponent();

            DataContext = new 温湿度测试WindowViewModel()
            {
                ErrorMessageEvent = msg => MessageBoxHelper.Error(msg),
                InfoMessageEvent = msg => MessageBoxHelper.Info(msg),
            };


            byte[] a = new byte[] { 0x01, 0x9D };
            UInt16 b = BitConverter.ToUInt16(a.Reverse().ToArray(), 0);

        }
    }
}
